package ganga.custodian.human;

/**
 * Два значения, определяющие коридор стабильности. The basic class is very simple.
 * You have a class with two fields that represent the start and end of the range.
 * You also provide an includes method that tests to see if the supplied value
 * falls within the range.
 * @author Apocrypha
 * @version 0.2
 * @updated 06-июл-2011 15:56:11
 */
public class PermissibleRange {
	/**
	 * @param start "От" - нижнее значение 
	 * @param end "До" - верхнее значение
	 */
	public PermissibleRange(double start, double end) {
		super();
		this.start = start;
		this.end = end;
	}
	public double start;
	public double end;
	/**
	 * The key method to provide in any use of Range is the includes method.
	 * 
	 * @param value
	 */
	public boolean includes(double value){
		return ((value > start) && (value < end));
	}
}
